<template>
  <comment :comments="communicationData"></comment>
</template>

<script>
  import comment from '../../../components/Comment/comment';
  import { getUserCommunication } from "@/api/communication/communication";

  export default {
    components: {
      comment
    },
    data() {
      return {
        communicationData: []
      }
    },
    created() {
      //this.commentData = CommentData.comment.data;
      this.getCommunication();
    },
    methods:{
      getCommunication(){
        getUserCommunication().then(response => {
        this.communicationData = response.data
      });
      }
    }
  }
</script>